package com.oct.ywsc.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

/**
 * @author zhangxiaoxiang
 * @date 2019/08/01
 * 线程池配置类
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "thread")
public class ThreadConfig {

    private int corePoolSize;
    private int maximumPoolSize;
    private long keepAliveTime;

    private int queueCapacity;
}
